//
//  UserDataManager.h
//  VISIKARD
//
//  Created by Phan Ba Minh on 6/5/12.
//  Copyright (c) 2012 kidbaw. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <QuartzCore/QuartzCore.h>
#import <UIKit/UIKit.h>
#import "Define.h"
#import "SDWebImageManager.h"

#define STRING_CODER_USER_DATA_USER_NAME							@"STRING_CODER_USER_DATA_USER_NAME"
#define STRING_CODER_USER_DATA_USER_ID								@"STRING_CODER_USER_DATA_USER_ID"
#define STRING_CODER_USER_DATA_PASSWORD								@"STRING_CODER_USER_DATA_PASSWORD"
#define STRING_CODER_USER_DATA_SESSION_ID							@"STRING_CODER_USER_DATA_SESSION_ID"
#define STRING_CODER_USER_DATA_LOGIN_STATUS							@"STRING_CODER_USER_DATA_LOGIN_STATUS"
#define STRING_CODER_USER_DATA_LOGIN_WITH_FB_TW                     @"STRING_CODER_USER_DATA_LOGIN_WITH_FB_TW"
#define STRING_CODER_USER_DATA_AVATAR_SMALL_URL                     @"STRING_CODER_USER_DATA_AVATAR_SMALL_URL"
#define STRING_CODER_USER_DATA_FULL_NAME                            @"STRING_CODER_USER_DATA_FULL_NAME"
#define STRING_CODER_USER_DATA_PROFILE_ID                           @"STRING_CODER_USER_DATA_PROFILE_ID"
#define STRING_CODER_USER_DATA_LOCATION                             @"STRING_CODER_USER_DATA_LOCATION"
#define STRING_CODER_USER_DATA_PLACE_MARK                           @"STRING_CODER_USER_DATA_PLACE_MARK"
#define STRING_CODER_USER_DATA_EMAIL                                @"STRING_CODER_USER_DATA_EMAIL"
#define STRING_CODER_USER_DATA_REQUEST_STATUS                       @"STRING_CODER_USER_DATA_REQUEST_STATUS"

#define STRING_CODER_USER_DATA_USER_UPDATED_DEVICE_TOKEN            @"STRING_CODER_USER_DATA_USER_UPDATED_DEVICE_TOKEN"
#define STRING_CODER_USER_DATA_USER_REGISTERED_DEVICE_TOKEN         @"STRING_CODER_USER_DATA_USER_REGISTERED_DEVICE_TOKEN"
#define STRING_CODER_USER_DATA_USER_UPDATED_DEVICE_UDID             @"STRING_CODER_USER_DATA_USER_UPDATED_DEVICE_UDID"
#define STRING_CODER_USER_DATA_USER_UPDATED_USER_ID                 @"STRING_CODER_USER_DATA_USER_UPDATED_USER_ID"
#define STRING_CODER_USER_DATA_USER_NOTIFY_ME                       @"STRING_CODER_USER_DATA_USER_NOTIFY_ME"

@interface UserDataManager : NSObject <SDWebImageManagerDelegate> {

}

@property (nonatomic, retain) CLLocation    *userLocation;
@property (nonatomic, retain) NSString      *userID;
@property (nonatomic, retain) NSString      *userName;
@property (nonatomic, retain) NSString      *userAccessToken;
@property (nonatomic, retain) NSString      *userPassword;
@property (nonatomic, retain) NSString      *userSessionID;
@property (nonatomic, retain) NSString      *userAvatarSmallURL;
@property (nonatomic, assign) NSInteger     userProfileID;
@property (nonatomic, assign) BOOL          userIsLogined;
@property (nonatomic, assign) BOOL          userIsLoginedWith_FB_TW;
@property (nonatomic, retain) NSString      *userFullName;
@property (nonatomic, retain) CLPlacemark   *userPlacemark;
@property (nonatomic, retain) NSString      *userEmail;
@property (nonatomic, assign) int           userRequestStatus;

@property (nonatomic, retain) NSString      *userRegisteredDeviceToken;
@property (nonatomic, retain) NSString      *userDeviceToken;
@property (nonatomic, retain) NSString      *userDeviceUDID;
@property (nonatomic, retain) NSString      *userNotifyMe;

- (void)cleanUserCacheAndCookie;
- (void)resetAllData;
- (NSString*)getUserPlacemark;
+ (UserDataManager *)Shared;
- (void)save;

@end
